package com.best.controller;

import com.best.service.SaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jiang Akang
 * employeeId: BG435424
 * @date 2021/2/2
 **/
@RestController
@RequestMapping("/save")
public class TransactionContrller {

    @Autowired
    private SaveService saveService;

    @PostMapping("/person")
    public void savePerson() {
        saveService.outerTransaction();
    }
}
